# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sqlping
pkgver=4
pkgrel=5
pkgdesc='SQL Server scanning tool that also checks for weak passwords using wordlists.'
url='http://www.sqlsecurity.com/downloads'
groups=('blackarch' 'blackarch-windows' 'blackarch-webapp' 'blackarch-exploitation')
license=('custom')
arch=('any')
source=("$pkgname.zip::http://8927d5bd-a-2e5e50b8-s-sites.googlegroups.com/a/sqlsecurity.com/public/downloads/SQLPing3.zip?attachauth=ANoY7cpHC0-e-WGxSCD2MhzrAwnv82hRcEeKPIK1ZKYvw9HSDJ4wtvlzHdz1GKAFkvMU6NV4BhRa_YR1yoi3OWgxowYMcCaYKfgl2JKhcGbQ6NBXDpfVioCmrZbLPLZe1erWt-vf6abhPbjdsi_protycX4Wi-isuGkmwyXy9iTedIB4cCXNbS9dlRSOVxPR8_5lFLWtUDdDEMU_XL0CmsRe9YsKnFDnzQ%3D%3D&attredirects=0&d=1")
sha512sums=('8524124d0274064243b487f614d4f2246d2660b931464f1df43aa1c2ce782f1765282e565499346fc672d74b533a1e479a1a9fd8a9cbdced1a59af4b6e550b8e')

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname"

  rm "$pkgname.zip"

  cp -a * "$pkgdir/usr/share/windows/$pkgname/"
}

